######################################################################################################### ##### Replication File: Uncertainty, Cleavages and Ethnic Coalitions
##### Authors: Nils-Christian Bormann
##### Journal: Journal of Politics
####################################################################################################
##### Read.me

# Required:

# data1: ReplicationData-EthnicCoalitions-Formation-Bormann-180209.csv
# data2: ReplicationData-EthnicCoalitions-Duration-Bormann-180209.csv

# script1: ReplicationCode-EthnicCoalitions-Formation-Bormann-180209.do
# script2: ReplicationCode-EthnicCoalitions-Formation-Plots-Bormann-180209.R
# script3: ReplicationCode-EthnicCoalitions-Duration-Bormann-180209.R

# software1: Stata 13 or higher 
# software2: R 3.0 or higher

## script 1: Formation Replication
#1# Place data, script, and function files in same folder
#2# Enter folder directory as working directory in line 10 of script1
#3# Ensure that all required libraries are loaded or install using install.packages()
#4# Run replication line by line

## script 2: Reproduce Figure 4
#1# Place data, script, and function files in same folder
#2# Run lines 1-67 and 224-251 in script1, which will produce coalition_pp_by_regime.csv
#3# Enter folder directory as working directory in line 10 of script2
#4# Ensure that all required libraries are loaded or install using install.packages()
#5# Run replication line by line

## script 3: Duration Replication
#1# Place data, script, and function files in same folder
#2# Enter folder directory as working directory in line 10 of script3
#3# Ensure that all required libraries are loaded or install using install.packages()
#4# Run replication line by line
